﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Express.Common;
using Express.UI.BaseSet;
using Express.UI.Express;

namespace Express
{
    /// <summary>
    /// 程序主窗体
    /// </summary>
    public partial class AppForm : Form
    {
        /// <summary>
        /// 公共类对象
        /// </summary>
        private readonly CommClass cc = new CommClass();

        /// <summary>
        /// 构造函数
        /// </summary>
        public AppForm()
        {
            InitializeComponent();
        }


        private void AppForm_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// 单击快递单设置按钮事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MenuItemSetBill_Click(object sender, EventArgs e)
        {
            cc.ShowFormByMdiParent(typeof(FormBillType), this);
        }

        /// <summary>
        /// 单击快递单打印按钮事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MenuItemBillPrint_Click(object sender, EventArgs e)
        {
            cc.ShowFormByMdiParent(typeof(FormBillPtint), this);
        }

        /// <summary>
        /// 单击快递单查询按钮事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MenuItemBillQuery_Click(object sender, EventArgs e)
        {
            cc.ShowFormByMdiParent(typeof(FormExpressBill), this);
        }
    }
}
